import { request, requestWithCancel } from '@/lib/axios'

// login
export const login = (data: object) => {
  return request({
    method: 'post',
    url: '/api/user',
    data,
    params: data,
  })
}

//
export const getUserInfo = (params: object) => {
  return requestWithCancel({
    method: 'get',
    url: '/api/user',
    params,
  })
}
